<?php $this->load->module('inc/home_made/jrheadercommon') ?>
	<!-- end -->
	<!-- 内容 -->
	<section class="content content1">
		<aside>
			<div>				
				<?php 
				$this->load->module('inc/home_made/producttypemod');
				$this->load->module('inc/home_made/salemod');
				?>
			</div>
		</aside>
		<div class="c_body clearfix">
			<div class="c_intro">
				<h3 class="radius"><div class="r_r"><div class="r_c">
					<div class="search">
						<form id="frm_search" action="<?php echo site_url('product/search') ?>" method="get" name="frm_search">
							<input type="text" id="productsearch" name="productsearch" placeholder="搜索产品名称" value="<?php echo isset($key_word)? $key_word:'' ?>" /> 
							<input type="submit" class="search_btn" value="搜索" />
						</form>
						
					</div><?php echo $title ?>-产品列表</div></div></h3>
				
					<?php 
					if($data){
						echo '<ul class="pros"  id="itemContainer">';
						foreach ($data as $key => $value) {

					?>
					<li>
						<dl class="pro_list">
							<dt>
								<?php	
								if($value->imagethumb){
									echo anchor('product/show/'.$value->id, "<img src='".$value->imagethumb."' />");
								}else{
									echo anchor('product/show/'.$value->id, "<img src='/resources/images/thumb_nophoto.jpg' />");
								}							
							
								 ?>
							</dt>
							<dd><span class="dd_title1">所属类别：</span><span>
								<?php 
								echo anchor('product/myclass/'.$value->typeid, $value->typetitle); ?>
							</span></dd>
							<dd><span class="dd_title1">产品名称：</span>
								<?php echo anchor('product/show/'.$value->id, $value->title) ?>
							</dd>
							<dd><span class="dd_title1"> </span><span> </span></dd> 
							<dd><span class="dd_title1">产品简介：</span><span><?php echo mb_substr(  strip_tags( $value->content ), 0, 10); ?></span></dd>
						</dl>
					</li>
					<?php 		
						}
						echo '</ul>';
						echo $pagination;
					}else{
						echo "没有上传产品信息";
					}
					?>
					
					
				
				<div class="holder"></div>
			</div>
		</div>
	</section>
	<!-- end -->
	<!-- 通用尾 -->
	<?php $this->load->module('inc/home_made/jrfooter') ?>
	<!-- end -->
</body>
<script src="/js/jquery.min.js"></script>

<script type="text/javascript" src="/js/favourite.js"></script>
<script>
$(function() {
 
});
</script>
</html>